# include <stdio.h>
# define N 13 
int main()
{
	int i,j ;
	int a[N] ;
	double b[4][3] ;
	for (i=0;i<N;i++)
	   scanf("%d",&a[i]);
	for (i=0;i<4;i++)
	{
		for (j=0;j<3;j++)
		{
		   b[i][j]=(double)a[i*3+j+1]/a[i*3+j];
		   printf("%.2f  ",b[i][j]);
	    }
	    printf("\n");
	}
	return 0;
}
